package domin;
//201902104051许浩君
import lombok.*;

import java.io.Serializable;

@ToString
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Resource implements Comparable<Resource>, Serializable {
	private Integer id;
	private String resource;
	private String url;
	private String no;
	private String remarks;

	public Resource(int id){
		this.id =id;
	}
	public Resource(String resource, String no, String url){
		this.resource = resource;
		this.no = no;
		this.url = url;
	}
	@Override
	public int compareTo(domin.Resource o) {
		// TODO Auto-generated method stub
		return this.id - o.id;
	}
}
